﻿using System;
using System.Collections.Generic;
using System.Text;
using System.Xml.Serialization;

namespace LdtJudge.DataEngine.Model.EvidenceDerivation
{
    /// <summary>
    /// 证据名称对应配置
    /// </summary>
    [Serializable]
    [XmlRootAttribute("root", IsNullable = false)]
    public class EvidenceNameConfig
    {
        [XmlElementAttribute("casetype", IsNullable = false)]
        public List<EvidenceNameCaseType> evidenceNameCaseTypeList { get; set; }
    }

    public class EvidenceNameCaseType
    {
        /// <summary>
        /// 案件类型
        /// </summary>
        [XmlAttribute("value")]
        public string value { get; set; }

        /// <summary>
        ///实体信息目录
        /// </summary>
        [XmlElementAttribute("substantialEvidence", IsNullable = false)]
        public List<EubstantialEvidence> eubstantialEvidenceList { get; set; }
    }

    public class EubstantialEvidence
    {
        [XmlAttribute("path")]
        public string path { get; set; }

        [XmlAttribute("booktype")]
        public string booktype { get; set; }

        [XmlElementAttribute("Evidence", IsNullable = false)]
        public List<EvidenceModel> evidenceModelList { get; set; }

        [XmlAttribute("name")]
        public string name { get; set; }
    }

    public class EvidenceModel
    {
        [XmlAttribute("path")]
        public string path { get; set; }
        /// <summary>
        /// 非实体证据
        /// </summary>
        [XmlAttribute("EvidenceIDPath")]
        public string EvidenceIDPath { get; set; }
    }
}
